package com.lanou3g.code0410.constructor;

/**
 * Created by dllo on 18/4/10.
 */
public class Main {
    public static void main(String[] args) {

      //  Son son = new Son();  //java强制创建父类对象
        Son son1 = new Son("zs");

        Object o = new Object(); //Main 类的父类，所有类的父类，上帝类

        Person person = new Person();

        person.setName("zs");
        System.out.println(person);

        Object o1 = new Person();
        Object o2 = new Son();

        Object[] objects = {person,son1,o,o1};

    }
}
